 <?php

    class Zend_View_Helper_Menu
    {
        public function Menu()
        {
            $tela = Zend_Registry::GET('tela');
            $content = "";
            switch($tela)
            {
                case 'home':
                    $content.= "<a href='/nodo/index'><input type='button' name='b2' value='Arvore'></a>|";
                    $content.= "<a href='/profile/insertimage'><input type='button' name='b3' value='Imagem'></a>";
                    $content.= "<a href='/user/cadastrar'><input type='button' name='b4' value='Cadastrar'></a>";
                    break;
                case 'nodo':
                    $content.= "<a href='/index'><input type='button' name='b1' value='Home'></a>";
                    $content.= " | ";
                    $content.= "<a href='/nodo/create'><input type='button' name='b2' value='Criar Nodo'></a>";
                    break;
                case 'criarNodo':
                    $content.= "<a href='/index'><input type='button' name='b1' value='Home'></a>";
                    $content.= " | ";
                    $content.= "<a href='/nodo/index'><input type='button' name='b2' value='Arvore'></a>";
                    break;
                case 'intoNodo':
                    require_once APPLICATION_PATH . '/forms/Forms_HiddenInfo.php';
                    $form = new Forms_HiddenInfo();
                    $content.= "<a href='/index'><input type='button' name='b1' value='Home'></a>|";
                    $content.= "<input type='button' name='bDeleteNodo' value='Deletar' onclick='return enableButtonDeleteNodo()'>|";
                    $content.= "<input type='button' name='bUpdateNodo' value='Editar' onclick='return enableButtonEdit();'>|";
                    $content.= "<a href='/artigo/create'><input type='button' name='bCreateArcticle' value='Criar Artigo'>|";
                    $content.= "<a href='/nodo/index'><input type='button' name='b2' value='Voltar'></a>"; 
                    break;
                case 'editNodo':
                    $content.= "<a href='/index'><input type='button' name='b1' value='Home'></a>";
                    $content.= " | ";
                    $content.= "<a href='/nodo/index'><input type='button' name='b2' value='Arvore'></a>";
                    break;
                case 'createArticle':
                    $content.= "<a href='/index'><input type='button' name='b1' value='Home'></a>";
                    $content.= " | ";
                    $content.= "<a href='/nodo/index'><input type='button' name='b2' value='Arvore'></a>|";
                    $content.= "<a href='/nodo/into'><input type='button' name='b3' value='Voltar'></a>";
                    break;
                case 'article':
                    $content.= "<a href='/index'><input type='button' name='b1' value='Home'></a>";
                    $content.= " | ";
                    $content.= "<a href='/nodo/index'><input type='button' name='b2' value='Arvore'></a>";
                    break;
                case 'intoArticle':
                    $content.= "<a href='/index'><input type='button' name='b1' value='Home'></a>|";
                    $content.= "<a href='/nodo/index'><input type='button' name='b2' value='Arvore'></a>|";
                    $content.= "<a href='/nodo/into'><input type='button' name='b3' value='Voltar'></a>";
                    break;
                case 'userCadaster':
                    $content.= "<a href='/index'><input type='button' name='b1' value='Home'></a>|";
                    $content.= "<a href='/nodo/index'><input type='button' name='b2' value='Arvore'></a>";
                    break;
                    
                                       
            }
            
            /* For all */
            if($tela != 'login')
                $content.= "|<a href='/user/login'><input type='button' name='b5' value='Login'></a>|";
            
             $content.= "<a href='/index'><input type='button' name='b1' value='Home'></a>|";
            
            echo $content;
        }
    }
?>
